home *** CD-ROM | disk | FTP | other *** search
/ Basic Instinct 2 Press Kit / Basic Instinct 2 Press Kit.iso / pc / main.dxr / FlashPaper_2_spannotes.swf / scripts / frame_3 / DoAction.as
Encoding:
Text File  |  2006-03-15  |  2.8 KB  |  115 lines

  1. function getIFlashPaper()
  2. {
  3.    return gMainView;
  4. }
  5. function isFlashPaperDocument()
  6. {
  7.    return true;
  8. }
  9. function getViewerType()
  10. {
  11.    return gMainView.getViewerType();
  12. }
  13. function getViewerVersion()
  14. {
  15.    return gMainView.getViewerVersion();
  16. }
  17. function getCurrentPage()
  18. {
  19.    return gMainView.getCurrentPage();
  20. }
  21. function setCurrentPage(pageNumber)
  22. {
  23.    gMainView.setCurrentPage(pageNumber);
  24. }
  25. function getNumberOfPages()
  26. {
  27.    return gMainView.getNumberOfPages();
  28. }
  29. function getLoadedPages()
  30. {
  31.    return gMainView.getLoadedPages();
  32. }
  33. function showPrevNextUI(flag)
  34. {
  35.    gMainView.showUIElement("PrevNext",flag);
  36. }
  37. function showPrintUI(flag)
  38. {
  39.    gMainView.showUIElement("Print",flag);
  40. }
  41. function printTheDocument()
  42. {
  43.    return gMainView.printTheDocument();
  44. }
  45. function showZoomUI(flag)
  46. {
  47.    gMainView.showUIElement("Zoom",flag);
  48. }
  49. function setCurrentZoom(percent)
  50. {
  51.    gMainView.setCurrentZoom(percent);
  52. }
  53. function getCurrentZoom()
  54. {
  55.    return gMainView.getCurrentZoom();
  56. }
  57. function setSize(w, h)
  58. {
  59.    if(!gMainView)
  60.    {
  61.       return false;
  62.    }
  63.    return gMainView.setSize(w,h);
  64. }
  65. function onPageChanged(newPageNumber)
  66. {
  67. }
  68. function onZoomChanged(percent)
  69. {
  70. }
  71. var gMainView;
  72. var fpLocalizations_o = null;
  73. var INITIAL_PAGE = INITIAL_PAGE != undefined ? INITIAL_PAGE : "1";
  74. var INITIAL_VIEW = INITIAL_VIEW != undefined ? INITIAL_VIEW : "width";
  75. var HANDHELD = HANDHELD != undefined ? HANDHELD : getVersion().indexOf("WINCE") != -1;
  76. var SCREEN_DPI = SCREEN_DPI != undefined ? SCREEN_DPI : "96";
  77. var SEARCH_TO_TOP = SEARCH_TO_TOP != undefined ? SEARCH_TO_TOP : "true";
  78. var POPUP_ENABLED = POPUP_ENABLED != undefined ? POPUP_ENABLED : "true";
  79. if(System.capabilities.language == "ko" || System.capabilities.language == "ja")
  80. {
  81.    FlashPaper.Utils.UISMALLFONTSIZE = FlashPaper.Utils.UIFONTSIZE;
  82. }
  83. if(UIFONT != undefined)
  84. {
  85.    FlashPaper.Utils.UIFONT = UIFONT;
  86. }
  87. if(UISMALLFONTSIZE != undefined)
  88. {
  89.    FlashPaper.Utils.UISMALLFONTSIZE = parseInt(UISMALLFONTSIZE);
  90. }
  91. if(UIFONTSIZE != undefined)
  92. {
  93.    FlashPaper.Utils.UIFONTSIZE = parseInt(UIFONTSIZE);
  94. }
  95. if(totalPages == undefined)
  96. {
  97.    totalPages = 100;
  98.    documentWidth = 2550;
  99.    documentHeight = 3300;
  100.    dpi = 300;
  101. }
  102. if(gMainView === undefined)
  103. {
  104.    fpLocalizations_o = new Object();
  105.    fpLocalizations_o.en = new FlashPaper.Localization.English();
  106.    fpLocalizations_o.de = new FlashPaper.Localization.German();
  107.    fpLocalizations_o.fr = new FlashPaper.Localization.French();
  108.    fpLocalizations_o.ja = new FlashPaper.Localization.Japanese();
  109.    fpLocalizations_o.es = new FlashPaper.Localization.Spanish();
  110.    fpLocalizations_o.it = new FlashPaper.Localization.Italian();
  111.    fpLocalizations_o.ko = new FlashPaper.Localization.Korean();
  112.    gMainView = new FlashPaper.MainView(this);
  113.    gMainView.addListener(this);
  114. }
  115.